Error // Usage: rails new APP_PATH [options] // when running 'rails server'

Posted by madphill on Stack Overflow See other posts from Stack Overflow or by madphill
Published on 2011-01-09T02:21:47Z Indexed on 2011/01/09 2:54 UTC
Read the original article Hit count: 376

Filed under:
|

Background info: I'm using GIT to get a repository of a project with Ruby files in it. The project lives in my SITES folder under home directory on my Mac.

I have Ruby: 1.8.7 I have just upgraded Rails to: 3.0.3

All I am trying to accomplish is to be able to render localhost.com:3000 in my browser of the GIT project i've already downloaded so I can work on it locally.

I ran the command 'rails server' and was returned the message below::

Usage: rails new APP_PATH [options]

Options: [--skip-gemfile] # Don't create a Gemfile -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) # Default: sqlite3 -O, [--skip-active-record] # Skip Active Record files -J, [--skip-prototype] # Skip Prototype files -T, [--skip-test-unit] # Skip Test::Unit files [--dev] # Setup the application with Gemfile pointing to your Rails checkout -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -G, [--skip-git] # Skip Git ignores and keeps -b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL) [--edge] # Setup the application with Gemfile pointing to Rails repository

Runtime options: -f, [--force] # Overwrite files that already exist -s, [--skip] # Skip files that already exist -p, [--pretend] # Run but do not make any changes -q, [--quiet] # Supress status output

Rails options: -h, [--help] # Show this help message and quit -v, [--version] # Show Rails version number and quit

Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify.

Example: rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about upgrade